home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / comm2 / usnotime.rdm < prev    next >
Text File  |  1996-02-22  |  3KB  |  95 lines

  1. Short:    TCP/IP utils to set/check time from USNO
  2. Author:   Port by Rick O'Sullivan, original by USNO timekeepers.
  3. Uploader: rosully@aww.com (Rick O'Sullivan)
  4. Type:     comm/tcp
  5.  
  6.             US Naval Observatory Time Utilites for AmigaDOS
  7.             -----------------------------------------------
  8.  
  9. DESCRIPTION
  10. -----------
  11.     This is an Amiga port of routines from the US Naval Observatory.
  12.  
  13.     UTILITIY  FUNCTION                        POST ADDRESS
  14.     --------  ------------------------------- ---------------------------
  15.     timec     check time from remote service; "time"    on port    37/tcp
  16.     time_chk  check time from remote service; "timesrv" on port 22375/tcp
  17.     time_set  set   time from remote service; "timesrv" on port 22375/tcp
  18.     timesrvd  serve time to   remote client ; "timesrv" on port 22375/tcp
  19.  
  20.  
  21. REQUIREMENTS
  22. ------------
  23.     These routines were compiled and tested on an A3000 with AmigaDOS
  24. V2.1 and AmiTCP V4.2 (commercial).  The source is provided and should
  25. be easily adapted for AS225.
  26.  
  27. INSTALLATION
  28. ------------
  29.   1 Copy the utilities in usno/bin to AmiTCP:bin.
  30.   2 Copy the daemon in usno/serv to AmiTCP:serv, if you wish to serve time.
  31.   3 Add the following line to AmiTCP:db/services:
  32.  
  33.     timesrv         22375/tcp                       ; time server process
  34.  
  35. EXAMPLES
  36. --------
  37.     Set local time to USNO time using "timesrv" & port 22375/tcp:
  38.  
  39.   > time_set tick.usno.navy.mil  ; sets local time to USNO time
  40.  
  41.  
  42.     Check local time with USNO time using "timesrv" & port 22375/tcp:
  43.  
  44.   > time_chk tick.usno.navy.mil
  45.     Local Time.....: Sat Nov 04 00:36:42 1995 at aww.com
  46.     Remote Time....: Sat Nov 04 00:36:42 1995 at tick.usno.navy.mil
  47.     Local - Server.: 0 secs
  48.  
  49.  
  50.     Check local time with USNO time using "time" & port 37/tcp:
  51.  
  52.   > time_chk tick.usno.navy.mil  ; checks local time with USNO time
  53.     Local Time.....: Sat Nov 04 00:38:41 1995 at aww.com
  54.     Remote Time....: Sat Nov 04 00:38:42 1995 at tick.usno.navy.mil
  55.     Local - Server.: -1 secs
  56.  
  57. BUGS
  58. ----
  59.     I had to _reset_ my GMT offset in the Locale Preference.  If you
  60. receive funny times try changing highligt on Locale's map back and
  61. forth.
  62.  
  63. DEVELOPERS
  64. ----------
  65.     The makefiles and source for these utilities is included.  They
  66. were compiled with SAS/C V6.55.  The makefiles assume the AmiTCP
  67. development files are organized as follows:
  68.  
  69.     AmiTCP:
  70.     |
  71.     ---> AmiTCP:dev
  72.          |
  73.          ---> AmiTCP:dev/include
  74.          |
  75.          ---> AmiTCP:dev/lib
  76.          |
  77.          ---> AmiTCP:dev/src
  78.              |
  79.              ---> AmiTCP:dev/src/usno
  80.  
  81.     Note: I've moved the default location of AmiTCP:include,
  82. AmiTCP:lib and AmiTCP:src to AmiTCP:dev as a personal preference.
  83.  
  84.     These files were obtained from ftp://tycho.usno.navy.mil.
  85.  
  86.     Mia culpa, I changed the names a bit and restructured the code to
  87. suit my tastes.
  88.  
  89. ------------------------------------------------------------------------
  90. Altofirma Web Works                                Richard P. O'Sullivan
  91. http://www.aww.com/                                      rosully@aww.com
  92. ------------------------------------------------------------------------
  93.  
  94. Tick-Tock :-)
  95.